package com.czd.support.service;

import org.springframework.stereotype.Service;

import com.czd.base.model.Paginate;
import com.czd.base.service.BaseService;
import com.czd.support.model.Reply;

@Service
public class ReplyService extends BaseService<Reply>{
	public Paginate queryForPage(Reply reply) {
		return this.queryForPaginate(sqlId("queryForPage"), reply);
	}
	
	public boolean delete(int id){
		return this.delete(sqlId("delete"), id);
	}
	public boolean deleteByTid(int id){
		return this.delete(sqlId("deleteByTid"), id);
	}
	
	public  int  findByTidCount(int  id){
		return   this.count("findByTidCount", id);
	}
}
